package com.example.demo2.biz;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo2.dao.employeeDao;
import com.example.demo2.pojo.employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class employeeBiz extends ServiceImpl<employeeDao, employee> {

    @Autowired
    private  employeeDao employeeDa ;

    public employee list(Integer id){


        return employeeDa.selectByPrimaryKey(id);
    }

    public List<employee> selectall(){
        return  employeeDa.selectALL();
    }

    public  Integer deleteByid(Integer id){
        return employeeDa.deleteByid(id);
    }

    public  Integer inserts(employee employee){
        return  employeeDa.inserts(employee);
    }

    public Integer updateByid(employee employee){
        return  employeeDa.updateByid(employee);
    }
}
